package com.zh.netty.inboundhandlerandoutboundhandler;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;

/**
 * @Description:
 * @ClassName MyServerInitializer
 * @date: 2021.04.02 15:37
 * @Author: zhanghang
 */
public class MyServerInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        ChannelPipeline pipeline = ch.pipeline();
        // 入站的handler 进行解码 MyByteToLongDecoder
        pipeline.addLast("",null);
    }
}
